3.2263 \(\int (a+b \sqrt {x})^p x^m \, dx\)

Optimal. Leaf size=52 \[ -\frac {2 x^{m+1} \left (a+b \sqrt {x}\right )^{p+1} \, _2F_1\left (1,2 m+p+3;p+2;\frac {a+b \sqrt {x}}{a}\right )}{a (p+1)} \]

[Out]

-2*x^(1+m)*hypergeom([1, 3+2*m+p],[2+p],(a+b*x^(1/2))/a)*(a+b*x^(1/2))^(1+p)/a/(1+p)

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 63, normalized size of antiderivative = 1.21, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {341, 66, 64} \[ \frac {x^{m+1} \left (a+b \sqrt {x}\right )^p \left (\frac {b \sqrt {x}}{a}+1\right )^{-p} \, _2F_1\left (2 (m+1),-p;2 m+3;-\frac {b \sqrt {x}}{a}\right )}{m+1} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*Sqrt[x])^p*x^m,x]

[Out]

((a + b*Sqrt[x])^p*x^(1 + m)*Hypergeometric2F1[2*(1 + m), -p, 3 + 2*m, -((b*Sqrt[x])/a)])/((1 + m)*(1 + (b*Sqr
t[x])/a)^p)

Rule 64

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(c^n*(b*x)^(m + 1)*Hypergeometric2F1[-n, m +
 1, m + 2, -((d*x)/c)])/(b*(m + 1)), x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[m] && (IntegerQ[n] || (GtQ[
c, 0] &&  !(EqQ[n, -2^(-1)] && EqQ[c^2 - d^2, 0] && GtQ[-(d/(b*c)), 0])))

Rule 66

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Dist[(c^IntPart[n]*(c + d*x)^FracPart[n])/(1 + (d
*x)/c)^FracPart[n], Int[(b*x)^m*(1 + (d*x)/c)^n, x], x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[m] &&  !Int
egerQ[n] &&  !GtQ[c, 0] &&  !GtQ[-(d/(b*c)), 0] && ((RationalQ[m] &&  !(EqQ[n, -2^(-1)] && EqQ[c^2 - d^2, 0]))
 ||  !RationalQ[n])

Rule 341

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> With[{k = Denominator[n]}, Dist[k, Subst[Int[x^(k*(
m + 1) - 1)*(a + b*x^(k*n))^p, x], x, x^(1/k)], x]] /; FreeQ[{a, b, m, p}, x] && FractionQ[n]

Rubi steps

\begin {align*} \int \left (a+b \sqrt {x}\right )^p x^m \, dx &=2 \operatorname {Subst}\left (\int x^{-1+2 (1+m)} (a+b x)^p \, dx,x,\sqrt {x}\right )\\ &=\left (2 \left (a+b \sqrt {x}\right )^p \left (1+\frac {b \sqrt {x}}{a}\right )^{-p}\right ) \operatorname {Subst}\left (\int x^{-1+2 (1+m)} \left (1+\frac {b x}{a}\right )^p \, dx,x,\sqrt {x}\right )\\ &=\frac {\left (a+b \sqrt {x}\right )^p \left (1+\frac {b \sqrt {x}}{a}\right )^{-p} x^{1+m} \, _2F_1\left (2 (1+m),-p;3+2 m;-\frac {b \sqrt {x}}{a}\right )}{1+m}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 65, normalized size = 1.25 \[ \frac {x^{m+1} \left (a+b \sqrt {x}\right )^p \left (\frac {b \sqrt {x}}{a}+1\right )^{-p} \, _2F_1\left (2 (m+1),-p;2 (m+1)+1;-\frac {b \sqrt {x}}{a}\right )}{m+1} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sqrt[x])^p*x^m,x]

[Out]

((a + b*Sqrt[x])^p*x^(1 + m)*Hypergeometric2F1[2*(1 + m), -p, 1 + 2*(1 + m), -((b*Sqrt[x])/a)])/((1 + m)*(1 +
(b*Sqrt[x])/a)^p)

________________________________________________________________________________________

fricas [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*(a+b*x^(1/2))^p,x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   alglogextint: unimplemented

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sqrt {x} + a\right )}^{p} x^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*(a+b*x^(1/2))^p,x, algorithm="giac")

[Out]

integrate((b*sqrt(x) + a)^p*x^m, x)

________________________________________________________________________________________

maple [F]  time = 0.18, size = 0, normalized size = 0.00 \[ \int x^{m} \left (b \sqrt {x}+a \right )^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^m*(b*x^(1/2)+a)^p,x)

[Out]

int(x^m*(b*x^(1/2)+a)^p,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sqrt {x} + a\right )}^{p} x^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*(a+b*x^(1/2))^p,x, algorithm="maxima")

[Out]

integrate((b*sqrt(x) + a)^p*x^m, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int x^m\,{\left (a+b\,\sqrt {x}\right )}^p \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^m*(a + b*x^(1/2))^p,x)

[Out]

int(x^m*(a + b*x^(1/2))^p, x)

________________________________________________________________________________________

sympy [C]  time = 36.19, size = 46, normalized size = 0.88 \[ \frac {2 a^{p} x x^{m} \Gamma \left (2 m + 2\right ) {{}_{2}F_{1}\left (\begin {matrix} - p, 2 m + 2 \\ 2 m + 3 \end {matrix}\middle | {\frac {b \sqrt {x} e^{i \pi }}{a}} \right )}}{\Gamma \left (2 m + 3\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**m*(a+b*x**(1/2))**p,x)

[Out]

2*a**p*x*x**m*gamma(2*m + 2)*hyper((-p, 2*m + 2), (2*m + 3,), b*sqrt(x)*exp_polar(I*pi)/a)/gamma(2*m + 3)

________________________________________________________________________________________